package com.qf.pojo;

import com.qf.dao.AccountDao;

import java.util.Date;

/**
 * @ClassName User
 * @Description TODO
 * @Author 86181
 * @Date 2022/8/29 22:05
 * @Version 1.0
 **/

/**
 * 三个属性都是属于User的依赖,统一交给Spring去管理和维护
 */
public class User {
    private String username;
    private int age;
    private Date birthday;
    private AccountDao accountDao;

    public User(String username, String age, Date birthday) {
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", accountDao=" + accountDao +
                '}';
    }

    public User() {
    }

    public User(String username, int age, Date birthday, AccountDao accountDao) {
        this.username = username;
        this.age = age;
        this.birthday = birthday;
        this.accountDao = accountDao;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public AccountDao getAccountDao() {
        return accountDao;
    }

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
}
